﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace SCS.Core.Models.Collection
{
    public class UserCollection
    {
        [Required(ErrorMessage = "*")]
        [DisplayName("UserName")]
        [StringLength(250)]
        public string UserName { get; set; }

        [DisplayName("Password")]
        [StringLength(250)]
        public string Password { get; set; }

        [Required(ErrorMessage = "*")]
        [DisplayName("Email")]
        [StringLength(250)]
        [RegularExpression(@"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}", ErrorMessage = "Email chưa đúng định dạng.")]
        [DataType(DataType.EmailAddress)]
        public string Email { get; set; }

        [DisplayName("CreateDate")]
        public DateTime? CreateDate { get; set; }

        [DisplayName("LastModified")]
        public DateTime? LastModified { get; set; }

        [DisplayName("DateCreate")]
        public byte? UserStatus { get; set; }

        [DisplayName("UserDes")]
        [StringLength(200)]
        public string UserDes { get; set; }

        [DisplayName("RoleID")]
        public int? RoleID { get; set; }

        [DisplayName("UserID")]
        public int? UserID { get; set; }

        [Required(ErrorMessage = "*")]
        public string CustomerName { get; set; }
    }
}
